﻿@model OnlineShop.Models.ViewModels.AccountModel
@{
    ViewBag.Title = "Đăng ký thành viên";
}
<div class="main_box">
    <h3 id="register">
        Đăng ký thành viên mới</h3>
    <div class="content_main_box">
        <div class="notify">
            @Html.ValidationSummary(true)
        </div>
        <div class="info_register">
            @{using (Html.BeginForm("Register", "Account", FormMethod.Post))
              {
                <fieldset>
                    <legend>Thông tin đăng nhập</legend>
                    <table>
                        <tbody>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.Email)
                                </td>
                                <td class="value">
                                    @Html.TextBoxFor(model => model.Email)
                                </td>
                                <td class="warning">
                                    @Html.ValidationMessageFor(model => model.Email)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.Password)
                                </td>
                                <td class="value">
                                    @Html.PasswordFor(model => model.Password)
                                </td>
                                <td class="warning">
                                    @Html.ValidationMessageFor(model => model.Password)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.RePassword)
                                </td>
                                <td class="value">
                                    @Html.PasswordFor(model => model.RePassword)
                                </td>
                                <td class="warning">
                                    @Html.ValidationMessageFor(model => model.RePassword)
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>

                <fieldset>
                    <legend>Thông tin cá nhân</legend>
                    <table>
                        <tbody>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.FirstName)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.FirstName)
                                </td>
                                <td class="warning">
                                    @Html.ValidationMessageFor(model => model.FirstName)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.LastName)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.LastName)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.LastName)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.Address1)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.Address1)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.Address1)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.PhoneNumber)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.PhoneNumber)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.PhoneNumber)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.CountryCode)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.CountryCode)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.CountryCode)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.City)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.City)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.City)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.StateProvince)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.StateProvince)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.StateProvince)
                                </td>
                            </tr>
                            <tr>
                                <td class="label">@Html.LabelFor(model => model.ZipCode)
                                </td>
                                <td class="value">@Html.TextBoxFor(model => model.ZipCode)
                                </td>
                                <td class="warning">@Html.ValidationMessageFor(model => model.ZipCode)
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>

                <p style="text-align: center;">
                    @Html.HiddenFor(model => model.ID)
                    <input type="submit" value="Đăng ký" class="btn_orange" />
                    <input type="button" value="Hủy bỏ" class="btn_orange" onclick="location.href = '../Home/Index';" />
                </p>      
              }                
            }
        </div>
    </div>
</div>
<!-- kết thúc .mainbox-->

